package com.yztstudy.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yztstudy.vo.CartVo;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 前端发过来的订单参数
 */

@Data
public class OrderParam implements Serializable {

    public static final Long serialVersionUID = 1L;

    @JsonProperty("user_id")
    private Integer userId; // 用户主键

    private List<CartVo> products; //多个商品

}
